<template>
  <view>
    <view class="w100 pl-40 pr-40">
      <view class="w100 h-120 rowsb rowsm fs-28 col333" style="border-bottom: 2rpx solid rgba(112, 112, 112, .1);" v-for="(item,index) in list" :key="index" @click="$tools.goNext('/pagesCopy/myScore/detail?index=1&type=' + item.type + '&id=' + id)">
        <view class="">{{item.name}}</view>
        <view class="">{{item.points}}积分</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        list:[],
        id:''
      };
    },
    onLoad(e) {
      this.id = e.id
      this.getList()
    },
    methods:{
      getList(){
        this.$tools.axiosFromToken('POST','proldconfig/listByBeUser',{beUserId:this.id},'加载中').then(res => {
          if(res.code != 200) return this.$tools.showtt(res.msg)
          let {data:{list}} = res
          this.list = list
        })
      }
    }
  }
</script>

<style lang="scss">

</style>
